package Utils
{
	import flash.geom.Rectangle;
	
	public class Collision
	{
		//these would be used for speical platforms 
		//yea...
		static public const OVERLAP_BIAS:Number = 4;
		
		static public const UP:uint = 0x0100;
		static public const DOWN:uint = 0x1000;
		static public const LEFT:uint = 0x0001;
		static public const RIGHT:uint = 0x0010;
		
		static public const NONE:uint = 0;
		static public const CEILING:uint = UP;
		static public const FLOOR:uint = DOWN;
		static public const WALL:uint = LEFT | RIGHT;
		static public const ANY:uint = UP | LEFT | RIGHT | DOWN;
		
		
		public function Collision()
		{
			
		}
		
		public static function collideGroups(object:GameObject, objects:Array):void
		{
			for(var index:int = 0; index < objects.length; index++)
			{
				object.collide(objects[index]);
			}
		}
		public static function collideGroupsWithCallBack(object:GameObject, objects:Array, callBack:Function):void
		{
			for(var index:int = 0; index < objects.length; index++)
			{
				object.collide(objects[index], callBack);
			}
		}
	}
}